package Classwork;

import java.io.*;
public class ZZ {
    public static void main(String[] args) throws IOException {
        int a=0,b=1,n,num;
        String str;
        BufferedReader buf;
        buf=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("请输入一个数：");
        str=buf.readLine();
        num=Integer.parseInt(str);
        while (b<num){
            n=a+b;
            a=b;
            b=n;
        }
           if (num==b)
               System.out.println(num+"是Fibonscci数");
           else System.out.println(num+"不是Fibonscci数");

    }
}
